import Vue from 'vue'
import Router from 'vue-router'
import Home from '../components/Home'
import Category from '../components/Category'
import PostView from '../components/PostView'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/post/*',
      name: 'PostView',
      component: PostView
    },
    {
      path: '/category/*',
      name: 'Category',
      component: Category
    }
  ]
})
